package com.cellulam.framework.scheduled;

/**
 * 任务类型
 */
public enum TaskType {
    NONE(0),
    SCHOOL(1),
    BANNER(2),
    ;

    /**
     * 编号
     */
    private int code;

    /**
     * 版本号，默认为1
     */
    private int version;

    TaskType(int code) {
        this(code, 1);
    }

    TaskType(int code, int version) {
        this.code = code;
        this.version = version;
    }

    public int getCode() {
        return this.code;
    }

    public int getVersion() {
        return this.version;
    }
}
